package com.xinsoft.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinsoft.entity.dto.CusPatrolStandardRefParam;
import com.xinsoft.entity.po.CusDevicePatrolStandardRef;
import com.xinsoft.mapper.CusDevicePatrolStandardRefMapper;
import com.xinsoft.service.CusDevicePatrolStandardRefService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author lijie
* @description 针对表【cus_device_patrol_standard_ref(设备巡检标准关联表)】的数据库操作Service实现
* @createDate 2023-06-26 10:36:47
*/
@Service
public class CusDevicePatrolStandardRefServiceImpl extends ServiceImpl<CusDevicePatrolStandardRefMapper, CusDevicePatrolStandardRef>
    implements CusDevicePatrolStandardRefService{

    @Resource
    CusDevicePatrolStandardRefMapper cusDevicePatrolStandardRefMapper;

    @Override
    public Object findPageListByParam(CusPatrolStandardRefParam param) {
        //分页
        Page<CusDevicePatrolStandardRef> page = new Page<CusDevicePatrolStandardRef>(param.getCurrentPage(), param.getPageSize());
        IPage<CusDevicePatrolStandardRef> resultPage = cusDevicePatrolStandardRefMapper.findListByParam(page, param);
        //返回值
        return resultPage;
    }
}




